#-------------------------------------------------
#
# Project created by QtCreator 2016-11-01T20:23:22
#
#-------------------------------------------------
#DEFINES += BUILD_ARM
DEFINES += BUILD_X86_LINUX
#DEFINES += BUILD_X86_WINDOWS
DEFINES += D_USE_JOYSTIC
DEFINES += D_USE_FLEET_WINDOW
#DEFINES += D_FOR_AGV
QT       += core gui network


greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

TARGET = ProgramFileExchangeMain
TEMPLATE = app

SOURCES += main.cpp \
    mainwindow.cpp


HEADERS  += mainwindow.h



############### INCLUDEPATH +=
INCLUDEPATH += ../ProgramFileExchange
INCLUDEPATH += ../ProgramSet
INCLUDEPATH += ../ProgramLanguageTranslate
INCLUDEPATH += ../../include/MacroDefine


if(contains(DEFINES,BUILD_X86_WINDOWS)){

DESTDIR = ../../bin/x86_WINDOWS

LIBS     += -L../../lib/x86_WINDOWS -lHmiCommunicate
LIBS     += -L../../lib/x86_WINDOWS -lCommunicateDelegate


}


if(contains(DEFINES,BUILD_X86_LINUX)){

DESTDIR = ../../bin/x86

LIBS     += -L../../lib/x86 -lProgramFileExchange
LIBS += -L../../lib/x86 -lProgramLanguageTranslate
LIBS += -L../../lib/x86 -lProgramSet
LIBS     += -L../../lib/x86 -lHmiCommunicate
LIBS     += -L../../lib/x86 -lCommunicateDelegate


#编译目录
UI_DIR += ../../build/tmphmi/x86_linux/exchangemain
MOC_DIR += ../../build/tmphmi/x86_linux/exchangemain
OBJECTS_DIR += ../../build/tmphmi/x86_linux/exchangemain
RCC_DIR  += ../../build/tmphmi/x86_linux/exchangemain
}


if(contains(DEFINES,D_USE_FLEET_WINDOW)){
message("project use D_USE_FLEET_WINDOW !")


}

if(contains(DEFINES,BUILD_ARM)){


DESTDIR = ../../bin/arm


#编译目录
UI_DIR += ../../build/tmphmi_arm/exchangemain
MOC_DIR += ../../build/tmphmi_arm/exchangemain
OBJECTS_DIR += ../../build/tmphmi_arm/exchangemain
RCC_DIR  += ../../build/tmphmi_arm/exchangemain
}

FORMS += \
    mainwindow.ui


contains( DEFINES, BUILD_X86_WINDOWS ){
message("project use BUILD_X86_WINDOWS !")
DESTDIR = ../../bin/x86_WINDOWS
}

contains( DEFINES, BUILD_X86_LINUX ){
message("project use BUILD_X86_LINUX !")
DESTDIR = ../../bin/x86
}

contains( DEFINES, BUILD_ARM ){
message("project use BUILD_ARM !")
DESTDIR = ../../bin/arm
}
